﻿
namespace Chess
{
    public class Piece
    {
        private readonly PieceColor pieceColor;
        private readonly PieceType pieceType;
        
        public Piece(PieceColor pieceColor, PieceType pieceType)
        {
            this.pieceColor = pieceColor;
            this.pieceType = pieceType;
        }

        public PieceColor PieceColor { get { return pieceColor; } }
        public PieceType PieceType { get { return pieceType; } }

        public static PieceColor OppositeColor(PieceColor color)
        {
            return color == PieceColor.White ? PieceColor.Black : PieceColor.White;
        }
    }
}
